home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10310 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  55 lines

  1. Path: solon.com!not-for-mail
  2. From: Matthias Dittrich <matti@hpbblb.bbn.hp.com>
  3. Newsgroups: comp.lang.c,comp.lang.c.moderated,hp.unix,comp.sys.hp.apps,comp.sys.hp.hpux
  4. Subject: Re: C coding problem
  5. Date: 16 Mar 1996 12:34:49 -0600
  6. Organization: Hewlett-Packard Co.
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4if1k9$bn6@solutions.solon.com>
  10. References: <4ianbf$h86@solutions.solon.com>
  11. NNTP-Posting-Host: solutions.solon.com
  12. X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.07 9000/712)
  13. X-Url: news:4ianbf$h86@solutions.solon.com
  14.  
  15. proctor@corp.hp.com (Stephen Proctor) wrote:
  16.  >Greetings,
  17.  >
  18.  >...........
  19.  >
  20.  >Note: c89 is the HP-UX POSIX-conformant C compiler
  21.  >
  22.  >Where can a list of warning and error codes be found for this compiler?
  23.  >
  24.  >1.) The following is the compilation line and the resulting warning message,
  25.  >
  26.  >% c89 shell.c -o shell
  27.  >cc: "shell.c", line 98: warning 608: Illegal integer-pointer 
  28.  >combination in assignment.
  29.  >
  30.  >2.) The program is as follows,
  31.  >
  32.  >#include <stdio.h>
  33.  >#include <ctype.h>
  34.  >#include <string.h>
  35.  >#include <stdlib.h>
  36.  >
  37.  >main(int argc, char *argv[])
  38.  >{
  39.  >int ii;
  40.  >int option_val = 0;
  41.  >/* skip lines */
  42.  >for (ii=1; ii<argc; ii++) {
  43.  >/* skip lines */
  44.  >/* The next line is the offending line */
  45.  >   if (*argv[ii] == '-') option_val = read_options;
  46.                                        ^^^^^^^^^^^^
  47. This may be your error, but I can't see what read_options is. Please check it
  48. or post a little bit more information.
  49.  >/* skip lines */
  50.  >return 0;         /* Program executed successfully */
  51.  >}
  52.  
  53. Good luck,
  54. Matthias
  55.